package com.abstract01;

/**
 * @ClassName Cat
 * @Description TODO
 * @Author hp
 * @Date 2021/6/16 9:19
 * @Version 1.0
 **/
public class Cat extends Animals {
    /**
     * 抽象方法的重写
     * 去掉修饰符abstract
     * 添加主体{}
     */
    @Override
    public void eat() {
        System.out.println("猫吃鱼");
    }
}
